# -*-coding:utf-8 -*-
# File  : otLotteryTypeUpdate_api.py
# Time  ：2021/12/9 14:34
# Author：author name

from api.manage.manage_base import ManageBase


class OtLotteryTypeUpdateApi(ManageBase):
    def __init__(self):
        """即开票彩种更新接口"""
        super().__init__()
        self.url = self.host + "cloudlottery-manage/otlottery/typeedit"
        self.json = {"id": "973db731c5ab4d839fd2b2416889253f", "lotterytypeName": "自动化测试01", "lotteryType": "SPORTS",
                     "lotterytypeCode": "ZDH01", "outLotterytype": "ZDH01", "price": 10,
                     "upimgpath": "https://enlive.oss-cn-shenzhen.aliyuncs.com/Uploads/lottery/20211209/Cd6PaT_1639030501872_1.jpg",
                     "downimgpath": "https://enlive.oss-cn-shenzhen.aliyuncs.com/Uploads/lottery/20211209/N1f1XP_1639030518344_1.jpg",
                     "saleStatus": 1, "isRule": "0", "remark": "this is testing", "length": 6, "width": 4}
        self.method = "put"
